<link rel="stylesheet" href="../core/resource/weui/weui.css">
<div class="order-list-page" ng-if="pagedata.op == 'main'">
     <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback()"></a>
        </div>
        <div class="title">我的订单</div>
        <div class="fui-header-right">
        </div>
    </div>
    <div id="tab" class="fui-tab fui-tab-danger">
		 <a ng-class="{'external active':pagedata.params.status == 100}" href="javascript:" ng-click="pagedata.params.status = 100;tool.get_list('jy_sendgoods/ex_order/getlist/',true)">全部</a>
        <a ng-class="{'external active':pagedata.params.status == 0}" href="javascript:" ng-click="pagedata.params.status = 0;tool.get_list('jy_sendgoods/ex_order/getlist/',true)">待付款</a>
        <a ng-class="{'external active':pagedata.params.status == 1}" href="javascript:" ng-click="pagedata.params.status = 1;tool.get_list('jy_sendgoods/ex_order/getlist/',true)">待发货</a>
        <a ng-class="{'external active':pagedata.params.status == 2}" href="javascript:" ng-click="pagedata.params.status = 2;tool.get_list('jy_sendgoods/ex_order/getlist/',true)">待收货</a>
        <a ng-class="{'external active':pagedata.params.status == 3}" href="javascript:" ng-click="pagedata.params.status = 3;tool.get_list('jy_sendgoods/ex_order/getlist/',true)">已完成</a>
    </div>
	<div class='fui-content navbar order-list' style="margin-top:2px">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.orderno}}</div>
                    </div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待发货</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已发货</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">待收货</div>
                    <div ng-show="item.status==4" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i>赠送人： {{item.sendmember.nickname}}
                            <span class="status noremark" style="font-size:0.50rem"><span style="color:#f60;"></span></span>
                        </div>
                    </a>
                    <a href="" class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.goods.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.goods.title}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem"></div>
								<div class="text" style="color:#f60;font-size:0.50rem">{{item.address}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:4rem">
                                ￥<span class="marketprice">{{item.goods.price}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个订单 <span class="text-danger">已支付</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 3" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">确认收货</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>

<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_sendgoods/ex_order/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_sendgoods/ex_order/getlist/');
}
</script>